package com.mdinic.blogovi.service;

import java.util.concurrent.ExecutorService;

/**
 * Provides email sending functionality.
 * 
 * @author mdinic
 * 
 */
public interface EmailSender {

    /**
     * Does the sending of email. Sending email is done in new thread. new
     * thread are fetched via {@link ExecutorService}.
     * 
     * @param mailTo
     *            destination email address
     * @param mailFrom
     *            source email address
     * @param subject
     *            email subject
     * @param content
     *            email content
     */
    void sendMail(final String mailTo, final String mailFrom, final String subject, final String content);

}
